package alex.rsx.activity;

import alex.rsx.activity.r.R;
import alex.rsx.view.AsideContainer;
import alex.rsx.view.ExpertDrawer;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;

public class MainActivity extends BaseActivity implements OnClickListener {
    /** Called when the activity is first created. */
    private ExpertDrawer slidingDrawer;
	
	private AsideContainer nMainContainer;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		slidingDrawer = (ExpertDrawer) findViewById(R.id.sliding_drawer);

		nMainContainer = new AsideContainer(this,slidingDrawer);
		
		slidingDrawer.setLeftView(nMainContainer.getMainLeftView());
		slidingDrawer.setRightView(nMainContainer.getMainRightView());
		
	}

	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		int v_id = v.getId();
		switch (v_id) {

		default:
			break;
		}
	}
	
}